<HTML>
<HEAD>
<TITLE>Listing of system.c</TITLE>
<LINK rel=stylesheet href="udf_styles.css" type="text/css">
</HEAD>
<BODY>
<table class="">
<tr><td><code><i>     1</i> </code></td><td><code>&nbsp /******************************************************************************/</code></td></tr>
<tr><td><code><i>     2</i> </code></td><td><code>&nbsp /*Files&nbsp to&nbsp Include&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>     3</i> </code></td><td><code>&nbsp /******************************************************************************/</code></td></tr>
<tr><td><code><i>     4</i> </code></td><td><code>&nbsp </code></td></tr>
<tr><td><code><i>     5</i> </code></td><td><code>&nbsp #if&nbsp defined(__XC)</code></td></tr>
<tr><td><code><i>     6</i> </code></td><td><code>&nbsp &nbsp&nbsp&nbsp&nbsp #include&nbsp&lsaquo  xc.h&rsaquo &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp /*&nbsp XC8&nbsp General&nbsp Include&nbsp File&nbsp */</code></td></tr>
<tr><td><code><i>     7</i> </code></td><td><code>&nbsp #elif&nbsp defined(HI_TECH_C)</code></td></tr>
<tr><td><code><i>     8</i> </code></td><td><code>&nbsp &nbsp&nbsp&nbsp&nbsp #include&nbsp&lsaquo  htc.h&rsaquo &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp /*&nbsp HiTech&nbsp General&nbsp Include&nbsp File&nbsp */</code></td></tr>
<tr><td><code><i>     9</i> </code></td><td><code>&nbsp #endif</code></td></tr>
<tr><td><code><i>    10</i> </code></td><td><code>&nbsp </code></td></tr>
<tr><td><code><i>    11</i> </code></td><td><code>&nbsp #include&nbsp&lsaquo  stdint.h&rsaquo &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp /*&nbsp For&nbsp uint8_t&nbsp definition&nbsp */</code></td></tr>
<tr><td><code><i>    12</i> </code></td><td><code>&nbsp #include&nbsp&lsaquo  stdbool.h&rsaquo &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp /*&nbsp For&nbsp true/false&nbsp definition&nbsp */</code></td></tr>
<tr><td><code><i>    13</i> </code></td><td><code>&nbsp </code></td></tr>
<tr><td><code><i>    14</i> </code></td><td><code>&nbsp #include&nbsp "system.h"</code></td></tr>
<tr><td><code><i>    15</i> </code></td><td><code>&nbsp </code></td></tr>
<tr><td><code><i>    16</i> </code></td><td><code>&nbsp /*&nbsp Refer&nbsp to&nbsp the&nbsp device&nbsp datasheet&nbsp for&nbsp information&nbsp about&nbsp available</code></td></tr>
<tr><td><code><i>    17</i> </code></td><td><code>&nbsp oscillator&nbsp configurations.&nbsp */</code></td></tr>
<tr><td><code><i>    18</i> </code></td><td><code>&nbsp void&nbsp ConfigureOscillator(void)</code></td></tr>
<tr><td><code><i>    19</i> </code></td><td><code>&nbsp {</code></td></tr>
<tr><td><code><i>    20</i> </code></td><td><code>&nbsp &nbsp&nbsp&nbsp&nbsp /*&nbsp&nbsp Add&nbsp clock&nbsp switching&nbsp code&nbsp if&nbsp appropriate.&nbsp&nbsp */</code></td></tr>
<tr><td><code><i>    21</i> </code></td><td><code>&nbsp </code></td></tr>
<tr><td><code><i>    22</i> </code></td><td><code>&nbsp &nbsp&nbsp&nbsp&nbsp /*&nbsp Typical&nbsp actions&nbsp in&nbsp this&nbsp function&nbsp are&nbsp to&nbsp tweak&nbsp the&nbsp oscillator&nbsp tuning</code></td></tr>
<tr><td><code><i>    23</i> </code></td><td><code>&nbsp &nbsp&nbsp&nbsp&nbsp register,&nbsp select&nbsp new&nbsp clock&nbsp sources,&nbsp and&nbsp to&nbsp wait&nbsp until&nbsp new&nbsp clock&nbsp sources</code></td></tr>
<tr><td><code><i>    24</i> </code></td><td><code>&nbsp &nbsp&nbsp&nbsp&nbsp are&nbsp stable&nbsp before&nbsp resuming&nbsp execution&nbsp of&nbsp the&nbsp main&nbsp project.&nbsp */</code></td></tr>
<tr><td><code><i>    25</i> </code></td><td><code>&nbsp }</code></code></BODY>
</HTML>
